#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2018-12-05 16:52
# @Author  : 少爷

def output(s, l):
    if l == 0:
        return
    print (s[l - 1])
    output(s, l - 1)

s = raw_input('Input a string:')
l = len(s)
output(s, l)
